/**
 * JmnInstruction(a,b,c).act() =>
 * if b!=c return a
 * else    return null
 * @author pabergg
 *
 */
public class JmnInstruction implements InstructionInterface {

	IntWrapper param1;
	IntWrapper param2;
	IntWrapper param3;
		
	public JmnInstruction(IntWrapper a,IntWrapper b,IntWrapper c){
		param1=a;
		param2=b;
		param3=c;
	}
	
	@Override
	public Integer act() {
		if(param1.get()!=param2.get())
		return new Integer(param3.get());
		return null;
	}
}